package com.mayuhao.departmentmanage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mayuhao.departmentmanage.entity.Department;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 马宇豪
 * @since 2022-10-19
 */
public interface IDepartmentService extends IService<Department> {

    /**
     * @return void
     * @description 请修改方法描述
     * @methodName export
     * @params [list]
     * @paramType [java.util.List<com.mayuhao.departmentmanage.entity.Department>]
     * @author 马宇豪
     * @date 2022/10/22 0022 下午 4:38
     * @email 1757442521@qq.com
     **/

    void export(HttpServletResponse response) throws IOException;

    /***
     * @description 分页
     * @methodName findPage
     * @params [pageNum, pageSize, searchId, searchName]
     * @paramType [java.lang.Integer, java.lang.Integer, java.lang.String, java.lang.String]
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.mayuhao.departmentmanage.entity.Department>
     * @author 马宇豪
     * @date 2022/10/22 0022 下午 4:50
     * @email 1757442521@qq.com
     **/
    Page<Department> findPage(Integer pageNum, Integer pageSize, String searchId, String searchName);

    /**
     * @return void
     * @description 请修改方法描述
     * @methodName iport
     * @params [file]
     * @paramType [org.springframework.web.multipart.MultipartFile]
     * @author 马宇豪
     * @date 2022/10/22 0022 下午 5:53
     * @email 1757442521@qq.com
     **/
    void imp(MultipartFile file) throws IOException;
}
